﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>文章管理</title>
    <!-- layui.css -->
    <link href="layui/css/layui.css" rel="stylesheet" />
</head>
<body>
    <div style="padding: 25px 50px 25px 0px;">
          <form class="layui-form">
            <div class="layui-form-item">
                <input type="text" id="lblid" name="lblid" placeholder="" autocomplete="off" readonly="true" class="layui-input layui-hide ">
                <label class="layui-form-label">文章标题</label>
                <div class="layui-input-block">
                    <input id="articlename" type="text" name="articlename" required lay-verify="required" placeholder="请输入文章标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">作者</label>
                <div class="layui-input-block">
                    <input id="author" type="text" name="author" required lay-verify="required" placeholder="请输入作者" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">文章分类</label>
                <div class="layui-input-block">
                    <select id="articletype" name="articletype" lay-verify="required">
                        <option value="0">默认分类</option>
                        <option value="10">Android</option>
                        <option value="11">IOS</option>
                        <option value="12">Java</option>
                        <option value="13">C#</option>
                        <option value="14">Web前端</option>
                        <option value="15">Html5</option>
                        <option value="16">SQL Server</option>
                         <option value="99">闲情随笔</option>
                    </select>
                </div>
            </div>


            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">文章摘要</label>
                <div class="layui-input-block">
                    <textarea id="articleoutline" name="articleoutline" placeholder="请输入文章摘要" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">封面图片</label>               
                <input id="imgurl" type="text" name="imgurl" class="layui-input layui-hide">
                <img id="imgpic" src="images/pic.png" onerror="errorImg(this)" height="60px" />
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">选项</label>
                <div class="layui-input-block">
                    <input type="checkbox" id="istop" name="istop" value="1" title="置顶">
                    <input type="checkbox" id="ishot" name="ishot" value="1" title="推荐">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">文章内容</label>
                <div class="layui-input-block">
                    <textarea id="articlecontent" class="layui-textarea" name="articlecontent" style="display: none"> </textarea>
                </div>
            </div>

            <div class="layui-form-item">

                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="btnsave">保存</button>
                </div>
            </div>
        </form>

    </div>
    <script src="layui/layui.js"></script>
    <script type="text/javascript" src="js/app.js" ></script>
    <script src="js/article_edit.js"></script>

</body>
</html>
